package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Admin;
import com.qdu.mapper.AdminMapper;
import com.qdu.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService{

	@Autowired
	AdminMapper adminMapper;

	@Override
	public boolean insert(Admin admin) {
		return adminMapper.insert(admin);
	}

	@Override
	public boolean deleteById(String id) {
		return adminMapper.deleteById(id);
	}

	@Override
	public boolean update(Admin admin) {
		return adminMapper.update(admin);
	}

	@Override
	public Admin getOneById(String id) {
		return adminMapper.getOneById(id);
	}

	@Override
	public List<Admin> getAll() {
		return adminMapper.getAll();
	}
	
	
}
